layui.use(['table', 'laytpl', 'layer'], function() {
	var url = location.href;
	var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
	var id = paraString[0].substring(paraString[0].indexOf("=") + 1, paraString[0].length);
	var $ = layui.$;
	$.ajax({
		type:"post",
		url:"/announce/msg",
		async:true,
		data:{
		  id:id
		},
		success:function(data){
			var ret=JSON.parse(data);
			console.log($(".announcetitle"))
			$(".announcetitle").val(ret.announcename);
			$(".announcetime").val(ret.announcetime);
			$(".announcedate").val(ret.announcedate);
			$(".announceman").val(ret.announceman);
			$(".layui-textarea").val(ret.announcecontxt);
		}
	});
});